package com.starry.Spring5Annotate;


import org.springframework.stereotype.Component;

// 括号的内容可以省略不写，表示默认的当注解要注入的id为类名首字母小写，如下的就可以省略
@Component(value ="book")
public class Book {
    private String bName;

    public void setbName(String bName) {
        this.bName = bName;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bName='" + bName + '\'' +
                '}';
    }
}
